#include "bot.h"

Bot::Bot(QObject *parent)
	: QObject(parent)
{
}

Bot::~Bot()
{
}

Bot::Bot(QString name)
{
	_option.name = name;
	_option.age = "20";
	_option.gender = Bot::Male;
	_option.description = "";
}

void Bot::set_trainer(Trainer __trainer)
{
	
}

void Bot::set_option(OPTION option)
{
	_option.name = option.name;
	_option.age = option.age;
	_option.gender = option.gender;
	_option.description = option.description;

}

QList<Response::resultStruct> Bot::get_response(QString input)
{
	return _trainer.get_response(input);
}

QStringList Bot::findPatterns(QString filename)
{
	return _trainer.findPatterns(filename);
}

QStringList Bot::getPatternKeys()
{
	return _trainer.getPatternKeys();
}

void Bot::trainer(QString learnfiles)
{
	_trainer.parserStarUpXml(learnfiles);

}
